package com.njwb.entity;

/**
 * Description: 实体类
 * Dept实体类  ----dept表  有对应关系的类称为实体类 ，实体包entity
 * Author: yuandeyin@itany.com
 * Date: 2025-08-08 14:41
 * Version: 1.0
 */
public class Dept {
    //只要对应即可，不需要和数据库中的表名或列名一模一样
    //deptNo  ----deptno
    //name    ----dname
    //loc     ----dloc
    private Integer deptNo;
    private String name;
    private String loc;

    public Integer getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(Integer deptNo) {
        this.deptNo = deptNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptNo=" + deptNo +
                ", name='" + name + '\'' +
                ", loc='" + loc + '\'' +
                '}';
    }
}
